<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Insert title here</title>
	</head>
	<body>
			<%
				Applicant applicant = (Applicant)session.getAttribute("applicant");
				Vector locationsVector = (Vector)session.getAttribute("locationsVector");
				Degree degree = (Degree)session.getAttribute("degree");
				Vector degreesVector = (Vector)session.getAttribute("degreeVector");
				String degreesString = Database.printDegrees(degreesVector);
			%>
			
			<%="Name: " + applicant.getName() %><br />
			<%="Country of Citizenship: " + applicant.getCitizenship() %> <br />
			<%="Country of Residence: " + applicant.getCountry_of_residence() %><br/>
			<%if(applicant.isDomestic()){ %>
			<%="Address: " + applicant.getAddressDomestic() %><br/>
			<%}else{%>
			<%="Address: " + applicant.getAddressForeign() %><br/>
			<%} %>
			<%= applicant.getDomestic() %><br/>
			
			<!-- Print Degrees -->
			<%=	degreesString %><br />
			
			<hr /><br />Was this your last degree?<br /><br />
			
			<input type="button" value="Done" onClick="window.location='specialization.jsp'"/>
				<html:form action="/anotherDegree">
				<html:submit value="Submit Next Degree" />
			</html:form>

	</body>
</html>